package com.cds.alert.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.cds.alert.dao.AlertLogUrlMapper;
import com.cds.alert.ibatis.Criteria;
import com.cds.alert.pojo.AlertLogUrl;
import com.cds.alert.service.AlertLogUrlService;

@Service("alertLogUrlService")
public class AlertLogUrlServiceImpl implements AlertLogUrlService {
	
	@Autowired
	private AlertLogUrlMapper alertLogUrlMapper;
	
	@Transactional(readOnly = true)
	public List<AlertLogUrl> queryByExample(Criteria example) {
		return alertLogUrlMapper.queryByExample(example);
	}
	
	@Transactional(readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = { Exception.class })
	public void insert(AlertLogUrl entiry) {
		alertLogUrlMapper.insert(entiry);
	}

}
